#ifndef __TRANS_FILE_H
#define __TRANS_FILE_H
#include"client.h"
void send_session(int new_fd,train_state_t* pt,int state,char* buf);
int recv_n(int sfd,void* buf,int data_len);
int send_n(int sfd,void* buf,int data_len);
int upload(int fd_up, char* file_name);
int download(int fd_down, char* file_name,train_off_t* pt);
void trim_space(char* src);
void recv_result_from_server(int sfd,int* precv_len,char* buf);
#endif